<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>测试专用线路</title>
<script src="../js/jquery.min.js" type="text/javascript"></script>
<style type="text/css">body,html,.video{padding: 0;margin: 0;width:100%;height:100%;background-color:#000; color:#999;}</style>
</head>
<body>
<script type="text/javascript" src="../ckplayer/ckplayer.js" charset="UTF-8"></script>
<div id="player" class="video"></div>
<script type="text/javascript">
function _get(name){
     var result = location.search.match(new RegExp("[\?\&]" + name+ "=([^\&]+)","i"));
     if(result == null || result.length < 1){
         return "";
     }
     return decodeURIComponent(result[1])
}
  var isiPad = navigator.userAgent.match(/iPad|iPhone|Android|Linux|iPod/i) != null;
  if(isiPad){
        document.getElementById('player').innerHTML = '<video src="'+ _get('url') +'" controls width="100%" height="100%" x-webkit-airplay="allow"></video>';
        $('<div class="video" id="divBag" style="position: fixed;left: 0px;top: 0px;z-index:1;background-color: rgba(0,0,0,0);"></div>').appendTo($('body'));
        $('#divBag').on('click',function(){
        $('video').get(0).play();
        $(this).remove();
        });
    	document.write('<script type="text/javascript" src="../js/jquery.min.js"><\/script>');
  }else {
		var videoObject = {
				container: '.video',
				variable: 'player',
				autoplay:true,
				live:true,
				video:_get('url')
			};
			var player = new ckplayer(videoObject);
  }
</script>
<script type="text/javascript">
        window.onload = function(){
            document.onkeydown = function (){
                var e = window.event || arguments[0];
                //F12
                if(e.keyCode == 123){
                    return false;
                //Ctrl+Shift+I
                }else if((e.ctrlKey) && (e.shiftKey) && (e.keyCode == 73)){
                    return false;
                //Shift+F10
                }else if((e.shiftKey) && (e.keyCode == 121)){
                    return false;
                //Ctrl+U
                }else if((e.ctrlKey) && (e.keyCode == 85)){
                    return false;
                }
            };
            document.oncontextmenu = function (){
                return false;
            }
        }
    </script>
</body>
</html>